<<<<<<< HEAD
<?php
	//这个页面。点击的时候多出了一栏。
	require_once('htmlPage.php');

	/**
	* 这是继承一个练习
	*/
class ServicesPage extends Page {
	private $row2buttons = array(
		'哦哦' => 'reengineering.php',
		'呢呢' => 'standards.php',
		'啦啦' => 'word.php',
		'嘿嘿' => 'mission.php'
		);

	//这里实现了对父类方法的重写
	public function DisplayHeader(){
?>
	<table width="100%" cellpadding="12" cellspacing="0" border="0">
	<tr bgcolor="white">
		<td align="left"><img src="logo.gif" /></td>
		<td><h1>服务页面</h1></td>
		<td align="right"><img src="logo.gif" /></td>
	</tr>
	</table>
<?php
	}

	public function Display(){
		echo "<html>\n<head>\n";
		$this->DisplayTitle();
		$this->DisplayKeywords();
		$this->DisplayStyles();
		echo "</head>\n<body>\n";
		$this->DisplayHeader();
		$this->DisplayMenu($this->buttons);
		$this->DisplayMenu($this->row2buttons);
		echo "$this->content";
		$this->DisplayFooter();
		echo "</body>\n</html>\n";
	}
}
	$services = new ServicesPage();

	$services->content = "<p>在这里，你可以得到你想要的服务！</p>";

	$services->Display();
?>	
<?php
	//这个页面。点击的时候多出了一栏。
	require_once('htmlPage.php');

	/**
	* 这是继承一个练习
	*/
class ServicesPage extends Page {
	private $row2buttons = array(
		'哦哦' => 'reengineering.php',
		'呢呢' => 'standards.php',
		'啦啦' => 'word.php',
		'嘿嘿' => 'mission.php'
		);

        //这里实现了对父类方法的重写
	public function DisplayHeader(){
?>
	<table width="100%" cellpadding="12" cellspacing="0" border="0">
	<tr bgcolor="white">
		<td align="left"><img src="logo.gif" /></td>
		<td><h1>服务页面</h1></td>
		<td align="right"><img src="logo.gif" /></td>
	</tr>
	</table>
<?php
	}
    
	public function Display(){
		echo "<html>\n<head>\n";
		$this->DisplayTitle();
		$this->DisplayKeywords();
		$this->DisplayStyles();
		echo "</head>\n<body>\n";
		$this->DisplayHeader();
		$this->DisplayMenu($this->buttons);
		$this->DisplayMenu($this->row2buttons);
		echo "$this->content";
		$this->DisplayFooter();
		echo "</body>\n</html>\n";
	}
}
	$services = new ServicesPage();

	$services->content = "<p>在这里，你可以得到你想要的服务！</p>";

	$services->Display();
?>